Optimal. Leaf size=84 \[ \frac {a^3 B c^3 \sec ^6(e+f x)}{6 f}+\frac {a^3 A c^3 \tan (e+f x)}{f}+\frac {2 a^3 A c^3 \tan ^3(e+f x)}{3 f}+\frac {a^3 A c^3 \tan ^5(e+f x)}{5 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.098, Rules used = {3669, 74, 655,
200} \begin {gather*} \frac {a^3 A c^3 \tan ^5(e+f x)}{5 f}+\frac {2 a^3 A c^3 \tan ^3(e+f x)}{3 f}+\frac {a^3 A c^3 \tan (e+f x)}{f}+\frac {a^3 B c^3 \sec ^6(e+f x)}{6 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 74
Rule 200
Rule 655
Rule 3669
Rubi steps
\begin {align*} \int (a+i a \tan (e+f x))^3 (A+B \tan (e+f x)) (c-i c \tan (e+f x))^3 \, dx &=\frac {(a c) \text {Subst}\left (\int (a+i a x)^2 (A+B x) (c-i c x)^2 \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {(a c) \text {Subst}\left (\int (A+B x) \left (a c+a c x^2\right )^2 \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {a^3 B c^3 \sec ^6(e+f x)}{6 f}+\frac {(a A c) \text {Subst}\left (\int \left (a c+a c x^2\right )^2 \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {a^3 B c^3 \sec ^6(e+f x)}{6 f}+\frac {(a A c) \text {Subst}\left (\int \left (a^2 c^2+2 a^2 c^2 x^2+a^2 c^2 x^4\right ) \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {a^3 B c^3 \sec ^6(e+f x)}{6 f}+\frac {a^3 A c^3 \tan (e+f x)}{f}+\frac {2 a^3 A c^3 \tan ^3(e+f x)}{3 f}+\frac {a^3 A c^3 \tan ^5(e+f x)}{5 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 65, normalized size = 0.77 \begin {gather*} \frac {a^3 B c^3 \sec ^6(e+f x)}{6 f}+\frac {a^3 A c^3 \left (\tan (e+f x)+\frac {2}{3} \tan ^3(e+f x)+\frac {1}{5} \tan ^5(e+f x)\right )}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 75, normalized size = 0.89
method | result | size |
derivativedivides | \(\frac {c^{3} a^{3} \left (\frac {B \left (\tan ^{6}\left (f x +e \right )\right )}{6}+\frac {A \left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {B \left (\tan ^{4}\left (f x +e \right )\right )}{2}+\frac {2 A \left (\tan ^{3}\left (f x +e \right )\right )}{3}+\frac {B \left (\tan ^{2}\left (f x +e \right )\right )}{2}+A \tan \left (f x +e \right )\right )}{f}\) | \(75\) |
default | \(\frac {c^{3} a^{3} \left (\frac {B \left (\tan ^{6}\left (f x +e \right )\right )}{6}+\frac {A \left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {B \left (\tan ^{4}\left (f x +e \right )\right )}{2}+\frac {2 A \left (\tan ^{3}\left (f x +e \right )\right )}{3}+\frac {B \left (\tan ^{2}\left (f x +e \right )\right )}{2}+A \tan \left (f x +e \right )\right )}{f}\) | \(75\) |
risch | \(\frac {16 c^{3} a^{3} \left (10 i A \,{\mathrm e}^{6 i \left (f x +e \right )}+10 B \,{\mathrm e}^{6 i \left (f x +e \right )}+15 i A \,{\mathrm e}^{4 i \left (f x +e \right )}+6 i A \,{\mathrm e}^{2 i \left (f x +e \right )}+i A \right )}{15 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{6}}\) | \(81\) |
norman | \(\frac {a^{3} A \,c^{3} \tan \left (f x +e \right )}{f}+\frac {B \,a^{3} c^{3} \left (\tan ^{2}\left (f x +e \right )\right )}{2 f}+\frac {B \,a^{3} c^{3} \left (\tan ^{4}\left (f x +e \right )\right )}{2 f}+\frac {B \,a^{3} c^{3} \left (\tan ^{6}\left (f x +e \right )\right )}{6 f}+\frac {2 a^{3} A \,c^{3} \left (\tan ^{3}\left (f x +e \right )\right )}{3 f}+\frac {a^{3} A \,c^{3} \left (\tan ^{5}\left (f x +e \right )\right )}{5 f}\) | \(119\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 112, normalized size = 1.33 \begin {gather*} \frac {5 \, B a^{3} c^{3} \tan \left (f x + e\right )^{6} + 6 \, A a^{3} c^{3} \tan \left (f x + e\right )^{5} + 15 \, B a^{3} c^{3} \tan \left (f x + e\right )^{4} + 20 \, A a^{3} c^{3} \tan \left (f x + e\right )^{3} + 15 \, B a^{3} c^{3} \tan \left (f x + e\right )^{2} + 30 \, A a^{3} c^{3} \tan \left (f x + e\right )}{30 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 13.19, size = 156, normalized size = 1.86 \begin {gather*} -\frac {16 \, {\left (10 \, {\left (-i \, A - B\right )} a^{3} c^{3} e^{\left (6 i \, f x + 6 i \, e\right )} - 15 i \, A a^{3} c^{3} e^{\left (4 i \, f x + 4 i \, e\right )} - 6 i \, A a^{3} c^{3} e^{\left (2 i \, f x + 2 i \, e\right )} - i \, A a^{3} c^{3}\right )}}{15 \, {\left (f e^{\left (12 i \, f x + 12 i \, e\right )} + 6 \, f e^{\left (10 i \, f x + 10 i \, e\right )} + 15 \, f e^{\left (8 i \, f x + 8 i \, e\right )} + 20 \, f e^{\left (6 i \, f x + 6 i \, e\right )} + 15 \, f e^{\left (4 i \, f x + 4 i \, e\right )} + 6 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.58, size = 224, normalized size = 2.67 \begin {gather*} \frac {240 i A a^{3} c^{3} e^{4 i e} e^{4 i f x} + 96 i A a^{3} c^{3} e^{2 i e} e^{2 i f x} + 16 i A a^{3} c^{3} + \left (160 i A a^{3} c^{3} e^{6 i e} + 160 B a^{3} c^{3} e^{6 i e}\right ) e^{6 i f x}}{15 f e^{12 i e} e^{12 i f x} + 90 f e^{10 i e} e^{10 i f x} + 225 f e^{8 i e} e^{8 i f x} + 300 f e^{6 i e} e^{6 i f x} + 225 f e^{4 i e} e^{4 i f x} + 90 f e^{2 i e} e^{2 i f x} + 15 f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 793 vs.
\(2 (82) = 164\).
time = 1.10, size = 793, normalized size = 9.44 \begin {gather*} \frac {5 \, B a^{3} c^{3} \tan \left (f x\right )^{6} \tan \left (e\right )^{6} - 30 \, A a^{3} c^{3} \tan \left (f x\right )^{6} \tan \left (e\right )^{5} - 30 \, A a^{3} c^{3} \tan \left (f x\right )^{5} \tan \left (e\right )^{6} + 15 \, B a^{3} c^{3} \tan \left (f x\right )^{6} \tan \left (e\right )^{4} + 15 \, B a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right )^{6} - 20 \, A a^{3} c^{3} \tan \left (f x\right )^{6} \tan \left (e\right )^{3} + 90 \, A a^{3} c^{3} \tan \left (f x\right )^{5} \tan \left (e\right )^{4} + 90 \, A a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right )^{5} - 20 \, A a^{3} c^{3} \tan \left (f x\right )^{3} \tan \left (e\right )^{6} + 15 \, B a^{3} c^{3} \tan \left (f x\right )^{6} \tan \left (e\right )^{2} + 45 \, B a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right )^{4} + 15 \, B a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right )^{6} - 6 \, A a^{3} c^{3} \tan \left (f x\right )^{6} \tan \left (e\right ) + 30 \, A a^{3} c^{3} \tan \left (f x\right )^{5} \tan \left (e\right )^{2} - 180 \, A a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right )^{3} - 180 \, A a^{3} c^{3} \tan \left (f x\right )^{3} \tan \left (e\right )^{4} + 30 \, A a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right )^{5} - 6 \, A a^{3} c^{3} \tan \left (f x\right ) \tan \left (e\right )^{6} + 5 \, B a^{3} c^{3} \tan \left (f x\right )^{6} + 45 \, B a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right )^{2} + 45 \, B a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right )^{4} + 5 \, B a^{3} c^{3} \tan \left (e\right )^{6} + 6 \, A a^{3} c^{3} \tan \left (f x\right )^{5} - 30 \, A a^{3} c^{3} \tan \left (f x\right )^{4} \tan \left (e\right ) + 180 \, A a^{3} c^{3} \tan \left (f x\right )^{3} \tan \left (e\right )^{2} + 180 \, A a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right )^{3} - 30 \, A a^{3} c^{3} \tan \left (f x\right ) \tan \left (e\right )^{4} + 6 \, A a^{3} c^{3} \tan \left (e\right )^{5} + 15 \, B a^{3} c^{3} \tan \left (f x\right )^{4} + 45 \, B a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right )^{2} + 15 \, B a^{3} c^{3} \tan \left (e\right )^{4} + 20 \, A a^{3} c^{3} \tan \left (f x\right )^{3} - 90 \, A a^{3} c^{3} \tan \left (f x\right )^{2} \tan \left (e\right ) - 90 \, A a^{3} c^{3} \tan \left (f x\right ) \tan \left (e\right )^{2} + 20 \, A a^{3} c^{3} \tan \left (e\right )^{3} + 15 \, B a^{3} c^{3} \tan \left (f x\right )^{2} + 15 \, B a^{3} c^{3} \tan \left (e\right )^{2} + 30 \, A a^{3} c^{3} \tan \left (f x\right ) + 30 \, A a^{3} c^{3} \tan \left (e\right ) + 5 \, B a^{3} c^{3}}{30 \, {\left (f \tan \left (f x\right )^{6} \tan \left (e\right )^{6} - 6 \, f \tan \left (f x\right )^{5} \tan \left (e\right )^{5} + 15 \, f \tan \left (f x\right )^{4} \tan \left (e\right )^{4} - 20 \, f \tan \left (f x\right )^{3} \tan \left (e\right )^{3} + 15 \, f \tan \left (f x\right )^{2} \tan \left (e\right )^{2} - 6 \, f \tan \left (f x\right ) \tan \left (e\right ) + f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.46, size = 120, normalized size = 1.43 \begin {gather*} \frac {a^3\,c^3\,\sin \left (e+f\,x\right )\,\left (30\,A\,{\cos \left (e+f\,x\right )}^5+15\,B\,{\cos \left (e+f\,x\right )}^4\,\sin \left (e+f\,x\right )+20\,A\,{\cos \left (e+f\,x\right )}^3\,{\sin \left (e+f\,x\right )}^2+15\,B\,{\cos \left (e+f\,x\right )}^2\,{\sin \left (e+f\,x\right )}^3+6\,A\,\cos \left (e+f\,x\right )\,{\sin \left (e+f\,x\right )}^4+5\,B\,{\sin \left (e+f\,x\right )}^5\right )}{30\,f\,{\cos \left (e+f\,x\right )}^6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________